package com.lft.freshordering.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author tyhxzy
 * @since 2024-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品图片
     */
    private byte[] goodsPics;

    /**
     * 商品类别ID
     */
    private Integer categoryId;

    /**
     * 商品简介
     */
    private String introduces;


    /**
     * 品种
     */
    private String varietys;


    /**
     * 单位编号
     */
//    private Integer unitId;

    /**
     * 是否逻辑删除(0,未删除 1，已删除)
     */
    private Integer isDeleted;

    /**
     * 商品件公斤价格
     */
    private Double gjprices;

    /**
     * 商品单位
     */
    private Integer goodsUnit;




    //单位id
    @TableField(exist = false)
    private Integer unitId;

    //单位名称
    @TableField(exist = false)
    private String unitName;

    //分类id
    @TableField(exist = false)
    private String id;

    //分类名称
    @TableField(exist = false)
    private String tname;

    //分类排序
    @TableField(exist = false)
    private Integer num;
}
